package com.intelligent.mts.client.core.view;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.swing.*;

/**
 * Created by Garen.Pang on 2016/8/19.
 */
@Component
public class MainTabbed extends JTabbedPane{

    @Autowired
    private MainPanel MainPanel;

    @Autowired
    private BomPanel bomPanel;

    @Autowired
    private TestPanel testPanel;

    @PostConstruct
    public void initComponents() {
        this.add("Tracing",MainPanel);
        this.add("Bom",bomPanel);
        this.add("Test", testPanel);
    }

}
